package com.zrf.gulimall.order.feign;

import com.zrf.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author zhanrf
 * @Date 2022/1/6 23:04
 */
@FeignClient("service-cart")
public interface CartFeignService {
	/**
	 * 获取用户选择的购物项信息
	 * @return
	 */
	@GetMapping(value = "/currentUserCartItems")
	@ResponseBody
	List<OrderItemVo> getCurrentCartItems();
}
